package com.jushu.storbox.view.resolve;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;

import com.handmark.pulltorefresh.library.ILoadingLayout;
import com.handmark.pulltorefresh.library.PullToRefreshBase.Mode;
import com.handmark.pulltorefresh.library.PullToRefreshListView;
import com.jushu.storbox.R;
import com.jushu.storbox.adapter.ListDisplayResolveAdapter;
import com.jushu.storbox.operation.group.BasicItemOperation;
import com.huawei.sharedrive.sdk.android.modelV2.response.INodeShareV2;

public abstract class MyShareDisplayResolve<AdapterItemDataType, ItemOperationType extends BasicItemOperation<AdapterItemDataType>, AdapterType extends ListDisplayResolveAdapter<AdapterItemDataType, ItemOperationType>>
		extends ListDisplayResolve<AdapterItemDataType, ItemOperationType, AdapterType> {

	List<INodeShareV2> datas = new ArrayList<INodeShareV2>();

	public MyShareDisplayResolve(Context context) {
		super(context);
	}

	@Override
	public void initComponent(PullToRefreshListView pullToRefreshListView) {
		detailList = pullToRefreshListView;
		detailList.setMode(Mode.PULL_FROM_START);
		ILoadingLayout startLabels = detailList.getLoadingLayoutProxy(true, false);
		startLabels.setPullLabel(context.getResources().getString(R.string.pull_to_refresh_pull_label));
		startLabels.setRefreshingLabel(context.getResources().getString(R.string.pull_to_refresh_refreshing_label));
		startLabels.setReleaseLabel(context.getResources().getString(R.string.pull_to_refresh_release_label));
	}

}
